# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-asciitree
_pkgname=asciitree
pkgver=0.3.3
pkgrel=7
pkgdesc='Draws ASCII trees.'
arch=('any')
url='https://pypi.org/project/asciitree/#files'
license=('MIT')
depends=('python')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('7b61134299ff1cb907cbe74811dc1cab09d6aafdefad599e67025b85d8e35ffc8538524a8c6bb683009f7ff7f7f946250e81afac3fd3b7f3b3b0cd8e528b494f')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

